<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title u-flex">{{title}}</text>
			<up-button @click="counter.increment" text="渐变色按钮" color="linear-gradient(to right, rgb(66, 83, 216), rgb(213, 51, 186))"></up-button>
			<text class="title">{{counter.count}}</text>
		</view>
	</view>
</template>

<script setup>
	import { ref } from 'vue'
	import { useCounterStore } from '@/stores/counter'
	import Test from '@/utils/Test'
	
	const title = ref('Hello')
	title.value = 'Hello World'
	
	const counter = useCounterStore()
	// counter.count++
	// counter.$patch({ count: counter.count + 1 })
	// counter.increment()
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
